package com.github.permissiondog.cancanpbackend.dao;

import com.github.permissiondog.cancanpbackend.model.Role;
import com.github.permissiondog.cancanpbackend.model.User;

import java.util.List;

public interface UserDao {
    void createTable();
    User getUserById(int id);
    User getUserByUsername(String username);
    List<User> getUserByRole(Role role);
    List<User> getUsers();
    void insertUser(User user);
    void updateUser(User user);
    void deleteUser(int id);
}
